# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'C:\Users\jhpark\svn\g_code\python\crawler\windows\design\qPreferenceDlg.ui'
#
# Created: Thu Jan 09 17:42:20 2014
#      by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_PreferenceDlg(object):
    def setupUi(self, PreferenceDlg):
        PreferenceDlg.setObjectName(_fromUtf8("PreferenceDlg"))
        PreferenceDlg.resize(400, 300)
        self.verticalLayout = QtGui.QVBoxLayout(PreferenceDlg)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setSpacing(0)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.listWidget = QtGui.QListWidget(PreferenceDlg)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.listWidget.sizePolicy().hasHeightForWidth())
        self.listWidget.setSizePolicy(sizePolicy)
        self.listWidget.setMaximumSize(QtCore.QSize(90, 16777215))
        self.listWidget.setAlternatingRowColors(True)
        self.listWidget.setObjectName(_fromUtf8("listWidget"))
        item = QtGui.QListWidgetItem()
        self.listWidget.addItem(item)
        item = QtGui.QListWidgetItem()
        self.listWidget.addItem(item)
        self.horizontalLayout.addWidget(self.listWidget)
        self.stackedWidget = QtGui.QStackedWidget(PreferenceDlg)
        self.stackedWidget.setObjectName(_fromUtf8("stackedWidget"))
        self.General = QtGui.QWidget()
        self.General.setObjectName(_fromUtf8("General"))
        self.verticalLayout_2 = QtGui.QVBoxLayout(self.General)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.formLayout = QtGui.QFormLayout()
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.General)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label)
        self.widget = DirectoryEditWidget(self.General)
        self.widget.setObjectName(_fromUtf8("widget"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.widget)
        self.verticalLayout_2.addLayout(self.formLayout)
        self.formLayout_2 = QtGui.QFormLayout()
        self.formLayout_2.setContentsMargins(-1, 60, -1, -1)
        self.formLayout_2.setObjectName(_fromUtf8("formLayout_2"))
        self.verticalLayout_2.addLayout(self.formLayout_2)
        self.stackedWidget.addWidget(self.General)
        self.Database = QtGui.QWidget()
        self.Database.setObjectName(_fromUtf8("Database"))
        self.stackedWidget.addWidget(self.Database)
        self.horizontalLayout.addWidget(self.stackedWidget)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.pushButton = QtGui.QPushButton(PreferenceDlg)
        self.pushButton.setObjectName(_fromUtf8("pushButton"))
        self.horizontalLayout_2.addWidget(self.pushButton)
        self.pushButton_2 = QtGui.QPushButton(PreferenceDlg)
        self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
        self.horizontalLayout_2.addWidget(self.pushButton_2)
        self.pushButton_3 = QtGui.QPushButton(PreferenceDlg)
        self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))
        self.horizontalLayout_2.addWidget(self.pushButton_3)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

        self.retranslateUi(PreferenceDlg)
        QtCore.QMetaObject.connectSlotsByName(PreferenceDlg)

    def retranslateUi(self, PreferenceDlg):
        PreferenceDlg.setWindowTitle(_translate("PreferenceDlg", "Dialog", None))
        __sortingEnabled = self.listWidget.isSortingEnabled()
        self.listWidget.setSortingEnabled(False)
        item = self.listWidget.item(0)
        item.setText(_translate("PreferenceDlg", "General", None))
        item = self.listWidget.item(1)
        item.setText(_translate("PreferenceDlg", "Database", None))
        self.listWidget.setSortingEnabled(__sortingEnabled)
        self.label.setText(_translate("PreferenceDlg", "Working Directory", None))
        self.pushButton.setText(_translate("PreferenceDlg", "PushButton", None))
        self.pushButton_2.setText(_translate("PreferenceDlg", "PushButton", None))
        self.pushButton_3.setText(_translate("PreferenceDlg", "PushButton", None))

from windows.DirectoryEditWidget import DirectoryEditWidget

if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    PreferenceDlg = QtGui.QDialog()
    ui = Ui_PreferenceDlg()
    ui.setupUi(PreferenceDlg)
    PreferenceDlg.show()
    sys.exit(app.exec_())

